/*
* Copyright 2024 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



void setup_scr_GPSMODE(lv_ui *ui)
{
    //Write codes GPSMODE
    ui->GPSMODE = lv_obj_create(NULL);
    lv_obj_set_size(ui->GPSMODE, 240, 320);
    lv_obj_set_scrollbar_mode(ui->GPSMODE, LV_SCROLLBAR_MODE_OFF);

    //Write style for GPSMODE, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->GPSMODE, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_cont_1
    ui->GPSMODE_cont_1 = lv_obj_create(ui->GPSMODE);
    lv_obj_set_pos(ui->GPSMODE_cont_1, 0, 0);
    lv_obj_set_size(ui->GPSMODE_cont_1, 240, 320);
    lv_obj_set_scrollbar_mode(ui->GPSMODE_cont_1, LV_SCROLLBAR_MODE_OFF);

    //Write style for GPSMODE_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->GPSMODE_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->GPSMODE_cont_1, lv_color_hex(0xfcfeff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->GPSMODE_cont_1, LV_GRAD_DIR_VER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_color(ui->GPSMODE_cont_1, lv_color_hex(0xd9f6ff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_main_stop(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_stop(ui->GPSMODE_cont_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_cont_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_qidong
    ui->GPSMODE_qidong = lv_obj_create(ui->GPSMODE_cont_1);
    lv_obj_set_pos(ui->GPSMODE_qidong, 10, 190);
    lv_obj_set_size(ui->GPSMODE_qidong, 220, 79);
    lv_obj_set_scrollbar_mode(ui->GPSMODE_qidong, LV_SCROLLBAR_MODE_OFF);

    //Write style for GPSMODE_qidong, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->GPSMODE_qidong, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_qidong, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->GPSMODE_qidong, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->GPSMODE_qidong, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->GPSMODE_qidong, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->GPSMODE_qidong, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->GPSMODE_qidong, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->GPSMODE_qidong, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->GPSMODE_qidong, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_qidong, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_label_1
    ui->GPSMODE_label_1 = lv_label_create(ui->GPSMODE_qidong);
    lv_label_set_text(ui->GPSMODE_label_1, "东经：");
    lv_label_set_long_mode(ui->GPSMODE_label_1, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->GPSMODE_label_1, 3, 49);
    lv_obj_set_size(ui->GPSMODE_label_1, 58, 18);

    //Write style for GPSMODE_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_label_1, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->GPSMODE_label_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_label_2
    ui->GPSMODE_label_2 = lv_label_create(ui->GPSMODE_qidong);
    lv_label_set_text(ui->GPSMODE_label_2, "北纬：");
    lv_label_set_long_mode(ui->GPSMODE_label_2, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->GPSMODE_label_2, 4, 18);
    lv_obj_set_size(ui->GPSMODE_label_2, 58, 18);

    //Write style for GPSMODE_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_label_2, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->GPSMODE_label_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_label_3
    ui->GPSMODE_label_3 = lv_label_create(ui->GPSMODE_qidong);
    lv_label_set_text(ui->GPSMODE_label_3, "28.342");
    lv_label_set_long_mode(ui->GPSMODE_label_3, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->GPSMODE_label_3, 58, 18);
    lv_obj_set_size(ui->GPSMODE_label_3, 127, 21);

    //Write style for GPSMODE_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_label_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_label_3, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_label_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->GPSMODE_label_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_label_4
    ui->GPSMODE_label_4 = lv_label_create(ui->GPSMODE_qidong);
    lv_label_set_text(ui->GPSMODE_label_4, "104.342");
    lv_label_set_long_mode(ui->GPSMODE_label_4, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->GPSMODE_label_4, 57, 48);
    lv_obj_set_size(ui->GPSMODE_label_4, 127, 21);

    //Write style for GPSMODE_label_4, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_label_4, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_label_4, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_label_4, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->GPSMODE_label_4, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_label_4, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_label_4, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_xieru
    ui->GPSMODE_xieru = lv_img_create(ui->GPSMODE_cont_1);
    lv_obj_add_flag(ui->GPSMODE_xieru, LV_OBJ_FLAG_CLICKABLE);
    lv_img_set_src(ui->GPSMODE_xieru, &_BE931701DEFFB802B399EA4B01497450_alpha_187x105);
    lv_img_set_pivot(ui->GPSMODE_xieru, 50,50);
    lv_img_set_angle(ui->GPSMODE_xieru, 0);
    lv_obj_set_pos(ui->GPSMODE_xieru, 20, 75);
    lv_obj_set_size(ui->GPSMODE_xieru, 187, 105);

    //Write style for GPSMODE_xieru, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_img_recolor_opa(ui->GPSMODE_xieru, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->GPSMODE_xieru, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_xieru, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->GPSMODE_xieru, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_Home
    ui->GPSMODE_Home = lv_btn_create(ui->GPSMODE_cont_1);
    ui->GPSMODE_Home_label = lv_label_create(ui->GPSMODE_Home);
    lv_label_set_text(ui->GPSMODE_Home_label, "Home");
    lv_label_set_long_mode(ui->GPSMODE_Home_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->GPSMODE_Home_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->GPSMODE_Home, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->GPSMODE_Home_label, LV_PCT(100));
    lv_obj_set_pos(ui->GPSMODE_Home, 92, 277);
    lv_obj_set_size(ui->GPSMODE_Home, 55, 42);

    //Write style for GPSMODE_Home, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->GPSMODE_Home, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->GPSMODE_Home, lv_color_hex(0x107bde), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->GPSMODE_Home, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->GPSMODE_Home, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_Home, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_Home, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_Home, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_Home, &lv_font_Acme_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_Home, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_Home, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_zuobiao
    ui->GPSMODE_zuobiao = lv_obj_create(ui->GPSMODE_cont_1);
    lv_obj_set_pos(ui->GPSMODE_zuobiao, 39, 129);
    lv_obj_set_size(ui->GPSMODE_zuobiao, 28, 28);
    lv_obj_set_scrollbar_mode(ui->GPSMODE_zuobiao, LV_SCROLLBAR_MODE_OFF);

    //Write style for GPSMODE_zuobiao, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_zuobiao, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_line_2
    ui->GPSMODE_line_2 = lv_line_create(ui->GPSMODE_zuobiao);
    static lv_point_t GPSMODE_line_2[] = {{0, 0},{11, 0},};
    lv_line_set_points(ui->GPSMODE_line_2, GPSMODE_line_2, 2);
    lv_obj_set_pos(ui->GPSMODE_line_2, 13, 5);
    lv_obj_set_size(ui->GPSMODE_line_2, 9, 2);

    //Write style for GPSMODE_line_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_line_width(ui->GPSMODE_line_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_color(ui->GPSMODE_line_2, lv_color_hex(0xf00000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_opa(ui->GPSMODE_line_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_rounded(ui->GPSMODE_line_2, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_line_1
    ui->GPSMODE_line_1 = lv_line_create(ui->GPSMODE_zuobiao);
    static lv_point_t GPSMODE_line_1[] = {{0, 0},{0, 11},};
    lv_line_set_points(ui->GPSMODE_line_1, GPSMODE_line_1, 2);
    lv_obj_set_pos(ui->GPSMODE_line_1, 18, 0);
    lv_obj_set_size(ui->GPSMODE_line_1, 3, 10);

    //Write style for GPSMODE_line_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_line_width(ui->GPSMODE_line_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_color(ui->GPSMODE_line_1, lv_color_hex(0xff0027), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_opa(ui->GPSMODE_line_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_rounded(ui->GPSMODE_line_1, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_GPSMode
    ui->GPSMODE_GPSMode = lv_btn_create(ui->GPSMODE_cont_1);
    ui->GPSMODE_GPSMode_label = lv_label_create(ui->GPSMODE_GPSMode);
    lv_label_set_text(ui->GPSMODE_GPSMode_label, "GPSMode");
    lv_label_set_long_mode(ui->GPSMODE_GPSMode_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->GPSMODE_GPSMode_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->GPSMODE_GPSMode, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->GPSMODE_GPSMode_label, LV_PCT(100));
    lv_obj_set_pos(ui->GPSMODE_GPSMode, 0, 283);
    lv_obj_set_size(ui->GPSMODE_GPSMode, 80, 37);

    //Write style for GPSMODE_GPSMode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->GPSMODE_GPSMode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->GPSMODE_GPSMode, lv_color_hex(0xf1a866), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->GPSMODE_GPSMode, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->GPSMODE_GPSMode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_GPSMode, 12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_GPSMode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_GPSMode, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_GPSMode, &lv_font_Acme_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_GPSMode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_GPSMode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_INSMode
    ui->GPSMODE_INSMode = lv_btn_create(ui->GPSMODE_cont_1);
    ui->GPSMODE_INSMode_label = lv_label_create(ui->GPSMODE_INSMode);
    lv_label_set_text(ui->GPSMODE_INSMode_label, "INSMode");
    lv_label_set_long_mode(ui->GPSMODE_INSMode_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->GPSMODE_INSMode_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->GPSMODE_INSMode, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->GPSMODE_INSMode_label, LV_PCT(100));
    lv_obj_set_pos(ui->GPSMODE_INSMode, 160, 283);
    lv_obj_set_size(ui->GPSMODE_INSMode, 80, 37);

    //Write style for GPSMODE_INSMode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->GPSMODE_INSMode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->GPSMODE_INSMode, lv_color_hex(0xf1a866), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->GPSMODE_INSMode, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->GPSMODE_INSMode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_INSMode, 12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_INSMode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_INSMode, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_INSMode, &lv_font_Acme_Regular_16, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_INSMode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_INSMode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes GPSMODE_jilu
    ui->GPSMODE_jilu = lv_btn_create(ui->GPSMODE_cont_1);
    ui->GPSMODE_jilu_label = lv_label_create(ui->GPSMODE_jilu);
    lv_label_set_text(ui->GPSMODE_jilu_label, "GPSMode");
    lv_label_set_long_mode(ui->GPSMODE_jilu_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->GPSMODE_jilu_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->GPSMODE_jilu, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->GPSMODE_jilu_label, LV_PCT(100));
    lv_obj_set_pos(ui->GPSMODE_jilu, 4, 2);
    lv_obj_set_size(ui->GPSMODE_jilu, 230, 51);

    //Write style for GPSMODE_jilu, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->GPSMODE_jilu, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->GPSMODE_jilu, lv_color_hex(0x6db9ea), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->GPSMODE_jilu, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->GPSMODE_jilu, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->GPSMODE_jilu, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->GPSMODE_jilu, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->GPSMODE_jilu, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->GPSMODE_jilu, &lv_font_Alatsi_Regular_21, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->GPSMODE_jilu, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->GPSMODE_jilu, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

    //The custom code of GPSMODE.


    //Update current screen layout.
    lv_obj_update_layout(ui->GPSMODE);

    //Init events for screen.
    events_init_GPSMODE(ui);
}
